<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic"%>

<html:form action="/sistema/materiaPrima/modificar" method="post" focus="nome">
	<table class="tbForm">
		<logic:messagesPresent message="false">
		<tr>
			<td colspan="2" class="erro">
				<bean:message key="formulario.informar.erros"/>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="erro">
				<html:messages id="mensagem" message="false" property="falha">
					<bean:write name="mensagem"/>
				</html:messages>
			</td>
		</tr>
		</logic:messagesPresent>
		<tr>
			<td width="35%" valign="top" align="right"><bean:message key="formulario.materiaprima.nome"/>:</td>
			<td width="" align="left">
				<html:text property="nome" size="50" maxlength="100"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('materiaPrima/nome.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="nome">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" ><bean:message key="formulario.materiaprima.unidade"/>:</td>
			<td align="left">
				<html:text readonly="true" property="unidade" size="4" maxlength="2"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('materiaPrima/unidade.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="unidade">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" ><bean:message key="formulario.materiaprima.estoquedisponivel"/>:</td>
			<td align="left"><bean:write name="materiaPrima" property="quantidade"/></td>
		</tr>
		<tr>
			<td><html:hidden property="materiaPrimaId"/></td>
			<td align="left">
				<html:submit><bean:message key="sistema.botao.salvar"/></html:submit>
			</td>
		</tr>
	</table>
</html:form>